package com.jic.member.mapper;

import com.jic.member.entity.MememberIntegralBase;
import com.jic.member.request.MememberIntegralBaseQueryRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员积分基础表
 * @author : 
 * @email : 
 * @since : 2020-04-04 02:29:49
 * @version : v1.0.0
 */
@Mapper
public interface  MememberIntegralBaseMapper {

    int insert(MememberIntegralBase mememberIntegralBase);

    long delete(Long id);

    long update(MememberIntegralBase mememberIntegralBase);

    MememberIntegralBase queryByPrimaryKey(Long id);

    List<MememberIntegralBase> query(MememberIntegralBase mememberIntegralBase);

    List<MememberIntegralBase> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberIntegralBase") MememberIntegralBase mememberIntegralBase);

    long queryPageCount(@Param("mememberIntegralBase") MememberIntegralBase mememberIntegralBase);

    MememberIntegralBase queryInfo(MememberIntegralBase mememberIntegralBase);

    MememberIntegralBase queryByDeptId(MememberIntegralBase mememberIntegralBase);

    List<MememberIntegralBase> queryPageForChild(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberIntegralBase") MememberIntegralBaseQueryRequest form);

    long queryPageCountForChild(@Param("mememberIntegralBase") MememberIntegralBaseQueryRequest form);

    Long queryIdByDeptId(@Param("deptId") Long deptId);
}